<template>
  <div class="wrapper" @click="scrollToTop">
    <div class="toTop glyphicon glyphicon-arrow-up"></div>
  </div>
</template>


<script>
export default {
  name: "totop",
  props: {
    scrollToTop: Function
  },

  data() {
    return {};
  },
  methods: {
    
  }
};
</script>


<style lang="less" scoped>
.wrapper {
  position: fixed;
  right: 2.5rem;
  bottom: 10rem;

  .toTop {
    // display: inline-block;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    padding: 0.1rem;
    color: #666;
    border: rgb(212, 210, 210) 1px solid;
    background-color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 3.7rem;
  }
}
</style>